package com.rdc.qingkou.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by asus on 17-11-30.
 */

public class TemplateSharePreferenceUtils {
       private SharedPreferences mPreferences ;
       private SharedPreferences.Editor mEditor;

    public TemplateSharePreferenceUtils(Context context) {
        this.mPreferences = context.getSharedPreferences("template",Context.MODE_PRIVATE);
        this.mEditor=mPreferences.edit();
    }

    public  void putTemlateInt(int i){

           mEditor.putInt("template",i);
           mEditor.apply();

        }

        public  int getTemplateInt(){


            return mPreferences.getInt("template",0);
        }




}
